package com.jetinno.serialport_app

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.view.View
import android_serialport_api.SerialPortFinder

/**
 * Created by zhangyuncai on 2024/11/1.
 * 描述：
 */
class SerialPortMainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_serialport)

        findViewById<View>(R.id.bt_main_show_ports)
            .setOnClickListener {
                val allDevices = SerialPortFinder().allDevices
                Log.i("test","allDevices:"+allDevices)
            }

    }


}